solving quadratic equations using the square root property